﻿using BLL;
using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Admin
{
    public partial class MovieManager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UserService.RequireLogin(this);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            var movie = new Movie
            {
                MovieName = TextBox1.Text.Trim(),
                MovieDirector = TextBox2.Text.Trim(),
                MovieMainActor = TextBox3.Text.Trim(),
                MovieDuration = TextBox4.Text.Trim(),
                MovieDesription = TextBox5.Text.Trim(),
            };
            MovieService.AddMovile(movie);
        }
    }
}